package com.hao.crm.web.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hao.crm.domain.Menu;
import com.hao.crm.util.UserContext;

@Controller
public class MenuController {
	@RequestMapping("/menu")
	@ResponseBody
	public List<Menu> list(){
		return (List<Menu>) UserContext.get().getSession().getAttribute(UserContext.MENU_IN_SESSION);
	}

}
